import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_FDM: AppRouteRecordRaw = {
  path: '/deco-fdm',
  name: 'DecoFdm',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '财务中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-fdm-owner',
      name: 'DecoFdmOwner',
      component: () => import('@/views/deco/fdm/owner/list/index.vue'),
      meta: {
        locale: '业主结算',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-fdm-agency-material',
      name: 'DecoFdmAgencyMaterial',
      component: () => import('@/views/deco/fdm/agency-material/list/index.vue'),
      meta: {
        locale: '材料结算',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-fdm-agency-carriage',
      name: 'DecoFdmAgencyCarriage',
      component: () => import('@/views/deco/fdm/agency-carriage/list/index.vue'),
      meta: {
        locale: '物流结算',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-fdm-agency-labour',
      name: 'DecoFdmAgencyLabour',
      component: () => import('@/views/deco/fdm/agency-labour/list/index.vue'),
      meta: {
        locale: '劳务结算',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-fdm-project',
      name: 'DecoFdmProject',
      component: () => import('@/views/deco/fdm/project/list/index.vue'),
      meta: {
        locale: '项目业绩',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_FDM;
